GtkNotebook: fix one child-notify emission
authorClaudio Saavedra <csaavedra@igalia.com>
Thu, 16 Feb 2012 10:24:21 +0000 (12:24 +0200)
committerClaudio Saavedra <csaavedra@igalia.com>
Thu, 16 Feb 2012 10:28:46 +0000 (12:28 +0200)
Forgot to increase the counter in the for loop, doing it now.

https://bugzilla.gnome.org/show_bug.cgi?id=669116

gtk/gtknotebook.c

index 8f9221135eeaf4425066fd54844b34292e07d9aa..c51baf03f29c7ab232db9029c372da89df530882 100644 (file)
@@ -8039,7 +8039,7 @@ gtk_notebook_reorder_child (GtkNotebook *notebook,
   /* Move around the menu items if necessary */
   gtk_notebook_child_reordered (notebook, page);
 
-  for (list = priv->children, i = 0; list; list = list->next)
+  for (list = priv->children, i = 0; list; list = list->next, i++)
     {
       if (MIN (old_pos, position) <= i && i <= MAX (old_pos, position))
        gtk_widget_child_notify (((GtkNotebookPage *) list->data)->child, "position");